package top.yifengxiner.blockchain.service;

import top.yifengxiner.blockchain.pojo.entity.Diploma;
import top.yifengxiner.blockchain.pojo.vo.CertificateVo;
import top.yifengxiner.blockchain.pojo.vo.IdVo;
import top.yifengxiner.common.core.pojo.AjaxResult;

import java.util.List;

public interface DiplomaService
{
    /**
     * 通过学生ID查询学位证书列表
     * @return
     */
    public List<Diploma> getDiploma(IdVo idVo);

    /**
     * 通过学历证书ID查询学历证书详情
     */
    public Diploma getDiplomaInfo(IdVo idVo);

    /**
     * 生成证书
     * @param certificateVo
     * @return
     */
    public int createDiploma(CertificateVo certificateVo);

    /**
     * 核验证书
     * @param id
     * @return
     */
    public AjaxResult checkDiploma(String id);
}
